package com.qjc.demo.base.collection;

import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

/**
 * @Description:
 * @Author: qjc
 * @Date: 2020/8/12
 */
public class SetTest {

    public static void main(String[] args) {
        HashSet set = new HashSet();
        for (int i = 0; i < 22; i++) {
            set.add(i);
        }

        TreeSet treeSet = new TreeSet<>();
        for (int i = 0; i < 22; i++) {
            treeSet.add(i);
        }

    }

}
